Von: Brian Harvey <bh@abbenay.cs.berkeley.edu>
Betreff: Re: [LogoForum] Mastering only the mechanics
Datum: Dienstag, 29. Mai 2001 18:53

"Edwin Pilobello" <Use-Author-Address-Header@[127.1]> writes:
>What I really want is to get really excited about list processing.  I want
>to communicate that feeling to the kids.  I feel like relegating list
>processing to a lesser status because (1) it's more opaque (2) text is
>uglier than the graphics window (3) I've always started with graphics (4)
>butfirst, butlast, butout...

Lists and graphics are not mutually exclusive.  For example, here's a nice
little project I learned from Paul Goldenberg:

Start with a few small shapes:

	to square
	repeat 4 [fd 10 rt 90]
	end

	to hex
	repeat 6 [fd 10 rt 60]
	end

	to star
	repeat 5 [fd 10 rt 144]
	end

Now try this meta-shape:

	to vee
	lt 45
	fd 30
	run pick [square hex star]
	bk 30
	rt 90
	fd 30
	run pick [square hex star]
	bk 30
	lt 45
	end

Try this several times and note what's the same each time and what's
different each time.  Along the way you can ask a couple of side questions:

	* How come the turtle doesn't get "lost" (in some unexpected
	  position or heading) while drawing the little shapes?

	* Why bother with the last two lines of the procedure?  They
	  don't change the drawing any.

Now make one small change: edit the two RUN lines so they say

	run pick [square hex star vee]

Before running the procedure, try to predict what drawings it will make.
Then run it several times.

What do you think will happen if you make it

	run pick [square hex star vee vee vee vee]

----------------

Here's another one combining text and graphics: spelling letters with
the turtle using a segment approach (like your digital watch):

to spell :word
foreach :word [segs thing ?]
end

to segs :seglist
localmake "home pos
foreach :seglist [
  localmake "seg item ? [[[0 0] [0 10]] [[0 10] [0 20]]
                         [[10 0] [10 10]] [[10 10] [10 20]]
                         [[20 0] [20 10]] [[20 10] [20 20]]
                         [[0 0] [10 0]] [[10 0] [20 0]]
			 [[0 10] [10 10]] [[10 10] [20 10]]
			 [[0 20] [10 20]] [[10 20] [20 20]]
			 [[0 0] [10 10]] [[10 10] [20 20]]
			 [[0 20] [10 10]] [[10 10] [20 0]]]
  pu setpos (map "sum :home first :seg)
  pd setpos (map "sum :home last :seg)
]
pu setpos (map "sum :home [25 0])
end

make "b [1 2 11 12 14 9 16 8 7]
make "r [1 2 11 12 6 9 10 16]
make "i [7 8 3 4 11 12]
make "a [1 2 11 12 6 5 9 10]
make "n [1 2 15 16 5 6]

; The other letters are left as an exercise for the reader!

? spell "brian

----------------

For more graphics projects that use lists, find

Clayson, James, "Visual Modeling with Logo"
	Geometric activities such as tiling, with a lot of detailed attention
	to actual patterns used in different cultures.
	ISBN 0-262-53069-4

Then, for some English-language listish projects, find

Goldenberg, E. Paul, and Wallace Feurzeig, "Exploring Language with Logo"
	Linguistics topics, exploring the structure of large units (poems)
	down to small units (sound and spelling of words).
	ISBN 0-262-57065-3

These may be slightly above 3rd grade level, but I'm not sure -- I've never
really taught that age.